package cn.ulc.common.model.param;


/**
 * Created by liming on 2017/2/28.
 */
public class PaginationParam {
    /**
     * 当前页码
     */
    private Integer current = 1;
    /**
     * 分页尺寸
     */
    private Integer pageSize = 10;

    public Integer getCurrent() {
        if (current == null || current == 0 || current < 0) current = 1;
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getPageSize() {
        if (pageSize == null || pageSize == 0 || pageSize < 0) pageSize = 10;
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
